<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
	</head>
	<body>
		<div id="demo">
			<p v-bind:style="{color:activeColor,'font-size':fontSize+'px'}">test style 1</p>
			<p v-bind:style="styleObject">test style 2</p>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#demo",
				data:{
					activeColor:'red',
					fontSize:15,
					styleObject: {
					    color: 'red',
					    fontSize: '13px'
					  }
				}
			})
		</script>

	</body>
</html>
